import "package:flutter/material.dart";

// 文字属性
class MyText extends StatelessWidget {
  const MyText({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: 200,
      height: 100,
      margin: const EdgeInsets.fromLTRB(0, 20, 0, 0),
      decoration: const BoxDecoration(
        color: Color(0xFFBBFFAA),
      ),
      child: const Text(
        '你好你好你好你好你好你好11111111aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
        textAlign: TextAlign.left,
        maxLines: 2,
        overflow: TextOverflow.ellipsis,
        style: TextStyle(
          fontSize: 14,
          fontWeight: FontWeight.w600,
          color: Color(0xff409EFF),
          fontStyle: FontStyle.italic, //倾斜
          letterSpacing: 2, //文字间隔
          decoration: TextDecoration.underline, //下划线
          decorationColor: Colors.red, //下划线颜色
          decorationStyle: TextDecorationStyle.dashed, //下划线类型
        ), //下划线颜色
      ),
    );
  }
}
